package com.xxin.mapper.sys;

import com.xxin.pojo.entity.SysUsers;
import com.xxin.pojo.vo.DoctorVO;
import com.xxin.pojo.vo.MenuVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
    @author 小欣
    @version 1.0
    @since 1.8
*/
 
public interface SysUsersMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysUsers record);

    int insertSelective(SysUsers record);

    SysUsers selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUsers record);

    int updateByPrimaryKey(SysUsers record);
	
	List<SysUsers> selectAll();
	
	SysUsers selectByAccount(String account);
	
	List<MenuVO> selectMenuByUserId(Integer userId);
	
	List<DoctorVO> selectByDepartmentId(@Param("departmentId") Long departmentId);
}